package org.jeecg.modules.wlhy.bill.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.wlhy.bill.dto.HyBillDTO;
import org.jeecg.modules.wlhy.bill.dto.HyDriverBillDTO;
import org.jeecg.modules.wlhy.bill.entity.HyDriverBill;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;
import java.util.Map;

/**
 * @Description: hy_driver_bill
 * @Author: jeecg-boot
 * @Date:   2021-01-20
 * @Version: V1.0
 */
public interface IHyDriverBillService extends IService<HyDriverBill> {

    Map<String, String> getTotalAmtByDriverId(String driverId , String payChannel);
    Map<String, String> getTotalAmtByDriverIdForPingAn(String driverId , String payChannel);

    Map<String, String> getTotalAmtByDriverIdForHsyh(String driverId , String payChannel);
    HyDriverBill getPreBillByShippingId(String shipping_id);
    HyDriverBill getBillByShippingId(String shipping_id);

    int getDriverTxCountsByDate(String driverId ,Date date);

    IPage<HyDriverBillDTO> getPageVo(Page<HyDriverBillDTO> page, QueryWrapper<HyDriverBillDTO> queryWrapper);
}
